﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;
namespace Models
{
  /// <summary>
  /// Class Product
  /// </summary>
  public class Product
  {
    public Product()
    {
      input_Date = Common.CcomFunction.GetCurrentDate();
      upd_Date = Common.CcomFunction.GetCurrentDate();
      del_Flg = Common.Constants.DEL_FLG_ON;
    }
    /// <summary>
    /// save info product code
    /// </summary>
    public string id { get; set; }
    /// <summary>
    /// save info product name
    /// </summary>
    public string name { get; set; }
    /// <summary>
    /// save info product info
    /// </summary>
    public string info { get; set; }
    /// <summary>
    /// save info product color
    /// </summary>
    public string color { get; set; }
    /// <summary>
    /// save info product price
    /// </summary>
    public string price { get; set; }
    /// <summary>
    /// save info manufacturer product
    /// </summary>
    public string manu_Id { get; set; }
    /// <summary>
    /// save info material product
    /// </summary>
    public string material { get; set; }
    /// <summary>
    /// save info product dependence category id 
    /// </summary>
    public int cat_Id { get; set; }
    /// <summary>
    /// save info deep product
    /// </summary>
    public int product_Deep { get; set; }
    /// <summary>
    /// save info width product
    /// </summary>
    public int product_Width { get; set; }
    /// <summary>
    /// save info height product
    /// </summary>
    public int product_Height { get; set; }
    /// <summary>
    /// save info product note
    /// </summary>
    public string product_Info_Note { get; set; }

    public string image1 { get; set; }
    public string image2 { get; set; }
    public string image3 { get; set; }
    
    public string image4 { get; set; }
    public string image5 { get; set; }
    public string image6 { get; set; }
    public string image7 { get; set; }
    public string image8 { get; set; }
    public string image9 { get; set; }
    public string image10 { get; set; }

    /// <summary>
    /// save info input user id
    /// </summary>
    //public string product_Input_Id { get; set; }
    /// <summary>
    /// save info date input (char(8)-YYYYMMDD)
    /// </summary>
    public DateTime input_Date { get; set; }
    /// <summary>
    /// save info date update ( char(8)- YYYYMMDD)
    /// </summary>
    public DateTime upd_Date { get; set; }
    /// <summary>
    /// save info product delete or not (char(1) - 0 or 1 )
    /// </summary>
    public char del_Flg { get; set; }

    /// <summary>
    /// save tag for funtion colection
    /// </summary>
    public string tag { get; set; }

    [ForeignKey("cat_Id")]
    public virtual Category category { get; set; }

    [ForeignKey("manu_Id")]
    public virtual Manufacturer manufacture { get; set; }

  }
}
